From 6ce48345ce50f95d684d60a46b449ce79c199281 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Mon, 28 Nov 2011 11:49:35 -0600 Subject: [PATCH] [path-bar] Only reset the children's styles if the children actually changed Signed-off-by: Federico Mena Quintero --- gtk/gtkpathbar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c index 5d5ef2d201..35dc8bf249 100644 --- a/gtk/gtkpathbar.c +++ b/gtk/gtkpathbar.c @@ -1755,6 +1755,8 @@ gtk_path_bar_set_file_finish (struct SetFileInfo *info, GtkWidget *button = BUTTON_DATA (l->data)->button; gtk_container_add (GTK_CONTAINER (info->path_bar), button); } + + child_ordering_changed (info->path_bar); } else { @@ -1776,8 +1778,6 @@ gtk_path_bar_set_file_finish (struct SetFileInfo *info, if (info->parent_file) g_object_unref (info->parent_file); - child_ordering_changed (info->path_bar); - g_free (info); } -- 2.30.2